<?php
/**
 * Created by PhpStorm.
 * Adminuser: Administrator
 * Date: 2019/2/15 0015
 * Time: 下午 3:54
 */
namespace app\common\model; //用户模型表
use think\Model;
class Adminuser extends Model
{
//    // 定义时间戳字段名
//    protected $createTime = 'create_at';
//    protected $updateTime = 'update_at';
    protected $pk='id';
    protected $autoWriteTimestamp = true;
    protected $insert = ['status' => 1];
    protected $auto = ['password'];
    protected function setPasswordAttr($value)
    {
        return sha1($value);
    }

}